package edu.hadassah.prettyprint.doc.xml;

import edu.hadassah.prettyprint.doc.ContentElement;
import edu.hadassah.prettyprint.doc.IVisitor;

public class Comment extends ContentElementImpl {
	
	private final String text;

	public Comment(ContentElement parent, String text) {
		super(parent);
		this.text = text;
	}

	public String getText() {
		return text;
	}
	
	public void accept(IVisitor visitor) {
		visitor.visit(this);
    }
}
